/**
 * 
 */
package com.myBase.core.facade.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.myBase.core.dao.GoldcoinAccountDao;
import com.myBase.core.entity.GoldcoinAccount;
import com.myBase.core.facade.service.GoldcoinAccountServiceFacade;
import com.myBase.common.persistence.Page;
import com.myBase.common.service.CrudAbstractService;

/**
 * ebei 系统用户账户信息Service
 * @author WuJie
 * @version 2017-05-04
 */
@Service("goldcoinAccountServiceFacade")
public class GoldcoinAccountServiceFacadeImpl extends CrudAbstractService<GoldcoinAccountDao, GoldcoinAccount>
        implements GoldcoinAccountServiceFacade {
    @Autowired
    private GoldcoinAccountDao goldcoinAccountDao;

    public GoldcoinAccount get(String id) {
        return super.get(id);
    }

    public List<GoldcoinAccount> findList(GoldcoinAccount goldcoinAccount) {
        return super.findList(goldcoinAccount);
    }

    public Page<GoldcoinAccount> findPage(Page<GoldcoinAccount> page, GoldcoinAccount goldcoinAccount) {
        return super.findPage(page, goldcoinAccount);
    }

    @Transactional(readOnly = false)
    public void save(GoldcoinAccount goldcoinAccount) {
        super.save(goldcoinAccount);
    }

    @Transactional(readOnly = false)
    public void delete(GoldcoinAccount goldcoinAccount) {
        super.delete(goldcoinAccount);
    }

    public GoldcoinAccount getGoldcoinAccountCheck(String userId, String officeId) {
        return goldcoinAccountDao.getGoldcoinAccountCheck(userId, officeId);
    }

}